package com.example.demo.service;

import com.example.demo.model.entity.Goods;
import com.example.demo.model.request.goods.CreateGoodsRequest;
import com.example.demo.model.request.goods.DeleteGoodsRequest;
import com.example.demo.model.request.goods.UpdateGoodsRequest;
import com.example.demo.model.response.PageQueryGoodsResponse;
import com.example.demo.util.PageInfo;

public interface GoodsService {

    Boolean create(CreateGoodsRequest request);

    Boolean update(UpdateGoodsRequest request);

    Boolean delete(DeleteGoodsRequest request);

    PageQueryGoodsResponse pageQuery(PageInfo pageInfo);

    Goods query(Integer id);
}
